﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Entities;
using ZhonTai.Industry.Domain.RouteDetail;

namespace ZhonTai.Industry.Domain.ProductRoute
{
    /// <summary>
    /// 产品路线
    /// </summary>
    /// <remarks>产品路线</remarks>
    [Table(Name = "prd_product_route")]
    public class ProductRouteEntity : EntityBase
    {
        /// <summary>
        /// 编号
        /// </summary>
        /// <remarks>编号</remarks>
        public string RouteCode { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        /// <remarks>名称</remarks>
        public string RouteName { get; set; }

        /// <summary>
        /// 产品路线序号
        /// </summary>
        public int RouteOrder { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        /// <remarks>排序</remarks>
        public int Sort { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        /// <remarks>描述</remarks>
        public string Description { get; set; }

        /// <summary>
        /// 产品路线详情
        /// </summary>
        [Navigate(nameof(RouteDetailEntity.ProductRouteId))]
        public ICollection<RouteDetailEntity> RouteDetailList { get; set; }
    }
}